package com.fucai;

import java.util.ArrayList;
import java.util.List;

/**
 * @description:
 * @author: zhuchi
 * @create: 2025-08-03 16:36
 * @Version 1.0
 **/
public class Test {

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("1");
        list.add("2");
        list.add("3");
        list.add("4");
        for (int i = 0; i < list.size(); i++){
            for (int j = i+1; j < list.size(); j++){
                String s = list.get(i) + list.get(j);
                System.out.println(s);
            }
        }

    }

}
